import time
from common.unit import AndroidUI


class LnitialObject:

    def __init__(self):
        self.driver = AndroidUI.get_webdriver()

    # 首次使用按钮
    def first_use_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/systemSet1")
        return element

    # 版本更新按钮
    def update_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/systemSet2")
        return element

    # 用户使用按钮
    def useruse_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/systemSet3")
        return element

    # 系统设置按钮
    def system_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/systemSet4")
        return element

    # 扫码按钮
    def scan_button(self):
        element = self.driver.find_element_by_id("com.bluephone:id/scan_iv")
        return element


if __name__ == '__main__':
    l = LnitialObject().first_use_button().click()
    # l.system_button().
